﻿/* Autoduel Game
 * CS4911 Senior Design Project
 * Fall 2010 Semester
 * Ian Axelrod, Liz Ha, Andrew Muldowney, Edward Futch
 */

using System;
using System.Windows.Forms;

namespace AutoduelClient
{
    /// <summary>
    /// Represents the login screen that is presented to the 
    /// user on game launch
    /// </summary>
    public partial class Login : Form
    {
		#region Constructors (1)
		/// <summary>
        /// Constructs the Login form
        /// </summary>
        public Login()
        {
            InitializeComponent();
        }
		#endregion

        private void loginBtn_Click(object sender, EventArgs e)
        {
            if (UsernameTxt.Text == null || UsernameTxt.Text.Length == 0) {
                MessageBox.Show(this, "You must input a valid user name", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                this.DialogResult = DialogResult.None;
            }
        }

    }
}
